package com.github.rxyor.common.core.exception;

import com.github.rxyor.common.core.enums.CoreExCodeEnum;
import com.github.rxyor.common.core.enums.KeyValue;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/10/8 周二 14:03:00
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper=true)
public class MysqlAffectRowsException extends MysqlException {

    private static final long serialVersionUID = -164139403745201486L;

    public MysqlAffectRowsException() {
        super(CoreExCodeEnum.MYSQL_UNEXPECTED_AFFECT_ROWS.getCode(), CoreExCodeEnum.MYSQL_UNEXPECTED_AFFECT_ROWS.getDesc());
    }

    public MysqlAffectRowsException(String msg) {
        super(CoreExCodeEnum.MYSQL_UNEXPECTED_AFFECT_ROWS.getCode(), msg);
    }

    public MysqlAffectRowsException(Integer code, String msg) {
        super(code, msg);
    }

    public MysqlAffectRowsException(Integer code, String msg,Throwable e) {
        super(code, msg,e);
    }

    public MysqlAffectRowsException(Throwable e) {
        super(e);
    }

    public MysqlAffectRowsException(String msg, Throwable e) {
        super(msg, e);
    }

    public MysqlAffectRowsException(KeyValue<? extends Integer> kv) {
        super(kv);
    }

    public MysqlAffectRowsException(KeyValue<? extends Integer> kv, String msg) {
        super(kv, msg);
    }

    public MysqlAffectRowsException(KeyValue<? extends Integer> kv, String msg,
        Throwable cause) {
        super(kv, msg, cause);
    }

    public MysqlAffectRowsException(KeyValue<? extends Integer> kv,
        Throwable cause) {
        super(kv, cause);
    }
}
